import java.util.ArrayList;
import java.util.Random;


public class Deck 
{
	ArrayList<Card> theDeck= new ArrayList<Card>();
	
	public Deck()
	{
		Card c;
		for(int x=2; x<15; x++)
		{
			c = new Card(x, 'H');
			theDeck.add(c);
		}
		for(int x=2; x<15; x++)
		{
			c = new Card(x, 'S');
			theDeck.add(c);
		}
		for(int x=2; x<15; x++)
		{
			c = new Card(x, 'C');
			theDeck.add(c);
		}
		for(int x=2; x<15; x++)
		{
			c = new Card(x, 'D');
			theDeck.add(c);
		}
	}
	
	public Card getACard()
	{
		Random ran = new Random();
		return theDeck.get(theDeck.size());
		
	}
	
	
}
